import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {
    path: '/slot',
    name: 'slot',
    component: () => import(/* webpackChunkName: "slot" */ '../views/SlotView.vue')
  },
  {
    path: '/todolist',
    name: 'todolist',
    component: () => import(/* webpackChunkName: "todolist" */ '../views/Todolist/index.vue')
  },
  {
    path: '/tab',
    name: 'tab',
    component: () => import(/* webpackChunkName: "tab" */ '../views/Tab/index.vue')
  },
  {
    path: '/openform',
    name: 'openform',
    component: () => import(/* webpackChunkName: "openform" */ '../views/OpenForm/index.vue')
  },
  {
    path: '/transmit',
    name: 'transmit',
    component: () => import(/* webpackChunkName: "openform" */ '../views/Transmit/index.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
